<?php
require_once("./conn.php");

//获取地址栏传递的son
$admin_id = $_GET['admin_id'];

//构建SQL语句
$sql = "delete from admin where admin_id=$admin_id";

//执行SQL语句
if(mysqli_query($con,$sql)){
    echo "<script>alert('删除成功!');location='./show_admin.php';</script>";
}else{
    echo "<script>alert('删除失败!');location='./show_admin.php';</script>";
}
?>